package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Claim;
import cn.wolfcode.crm.domain.ClaimItem;
import cn.wolfcode.crm.query.ClaimQueryObject;

import java.util.List;

public interface ClaimItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ClaimItem record);

    ClaimItem selectByPrimaryKey(Long id);

    List<ClaimItem> selectAll();

    int updateByPrimaryKey(ClaimItem record);

    int query4item4Count(ClaimQueryObject qo);

    List<Claim> query4item4List(ClaimQueryObject qo);

    ClaimItem getCliamItemByClaimId(Long claimId);

    void update4Dispose(ClaimItem claimItem);

    void changeItemState(Long id);

    Long selectEmployeeIdByClaimItem(Long id);

    Long selectClaimItemIdByClaimId(Long claimId);
}